<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//首页
Route::get('/', 'AddressBookController@index')->name('user.list');
//新建页面
Route::get('/users/create', 'AddressBookController@create')->name('user.create.show');
//新建操作
Route::post('/users/create', 'AddressBookController@createPost')->name('user.create.post');
//更新页面
Route::get('/users/update/{id}', 'AddressBookController@show')->name('user.update.show');
//更新操作
Route::post('/users/update/{id}', 'AddressBookController@update')->name('user.update.post');
//删除操作
Route::get('/users/delete', 'AddressBookController@delete')->name('user.delete.post');
